<%@ page language="java" import="java.util.*,java.util.Date" pageEncoding="UTF-8"%>
<%@ taglib prefix="tz" uri="/WEB-INF/tld/fntld.tld" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% 
java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 

java.util.Date currentTime = new java.util.Date();//得到当前系统时间 

String str_date1 = formatter.format(currentTime); //将日期时间格式化 
%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv=content-type content="text/html; charset=utf-8" />
        <link href="<%=path%>/css/admin.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
        <table cellspacing=0 cellpadding=0 width="100%" align=center border=0>
            <tr height=28>
                <td background=<%=path%>/img/title_bg1.jpg>当前位置: </td></tr>
            <tr>
                <td bgcolor=#b1ceef height=1></td></tr>
            <tr height=20>
                <td background=<%=path%>/img/shadow_bg.jpg></td></tr></table>
        <table cellspacing=0 cellpadding=0 width="90%" align=center border=0>
            <tr height=100>
                <td align=middle width=100><img height=100 src="<%=path%>/img/admin_p.gif" 
                                                width=90></td>
                <td width=60>&nbsp;</td>
                <td>
                    <table height=100 cellspacing=0 cellpadding=0 width="100%" border=0>

                        <tr>
                            <td>当前时间：<%=str_date1 %></td></tr>
                        <tr>
                            <td style="font-weight: bold; font-size: 16px">
                                                                                   你好，${tz:checkLimits(user.clevel)}
                                     	
                              </td></tr>
                        <tr>
                            <td>欢迎进入网站管理中心！</td></tr></table></td></tr>
            <tr>
                <td colspan=3 height=10></td></tr></table>
        <table cellspacing=0 cellpadding=0 width="95%" align=center border=0>
            <tr height=20>
                <td></td></tr>
            <tr height=22>
                <td style="padding-left: 20px; font-weight: bold; color: #ffffff" 
                    align=middle background=<%=path%>/img/title_bg2.jpg>您的相关信息</td></tr>
            <tr bgcolor=#ecf4fc height=12>
                <td></td></tr>
            <tr height=20>
                <td></td></tr></table>
        <table cellspacing=0 cellpadding=2 width="95%" align=center border=0>
            <tr>
                <td align=right width=100>登陆帐号：</td>
                <td style="color: #880000">${user.cusername}</td></tr>
            <tr>
                <td align=right>真实姓名：</td>
                <td style="color: #880000">${user.cshowname}</td></tr>
            <tr>
                <td align=right>注册时间：</td>
                <td style="color: #880000">${tz:dateFormat(user.cregtime,"yyyy-MM-dd HH:mm:ss")}</td></tr>
            <tr>
                <td align=right>上次登录：</td>
                <td style="color: #880000">${tz:dateFormat(user.clogintime,"yyyy-MM-dd HH:mm:ss")}</td></tr>
            <tr>
                <td align=right>上线时间：</td>
                <td style="color: #880000">${logintime}</td></tr>
            <tr>
                <td align=right>ip地址：</td>
                <td style="color: #880000">
                <%=request.getRemoteAddr() %></td></tr>
            <tr>
                <td align=right>距离上次登录：</td>
                <td style="color: #880000">${tz:dateToString(user.clogintime)}</td>
			</tr>
        </table>
    </body>
</html>